//
//  KeHuAddressTableViewCell.m
//  ErJie
//
//  Created by yaorenjin on 2017/1/30.
//  Copyright © 2017年 yaorenjin. All rights reserved.
//

#import "KeHuAddressTableViewCell.h"
#import "KeHuEntity+CoreDataProperties.h"

@interface KeHuAddressTableViewCell () <UITextFieldDelegate>
@property(nonatomic,strong)KeHuEntity* addEntity;

@end

@implementation KeHuAddressTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.textField.delegate = self;
}

-(void)reloadData:(id)model
{
    self.addEntity = model;
}

-(void)textFieldDidEndEditing:(UITextField *)textField
{
    self.addEntity.address = textField.text;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
